public class YW_GooseAdapter implements YW_Quackable {
	YW_Goose goose;
	YW_Observable observable;
 
	public YW_GooseAdapter(YW_Goose goose) {
		this.goose = goose;
		observable = new YW_Observable(this);
	}
 
	public void quack() {
		goose.honk();
		notifyObservers();
	}

	public void registerObserver(YW_Observer observer) {
		observable.registerObserver(observer);
	}

	public void notifyObservers() {
		observable.notifyObservers();
	}

	public String toString() {
		return "Goose pretending to be a Duck";
	}
}
